package com.lu.manage.modular.generate.service;


import com.lu.manage.modular.generate.model.CodeStrategy;

import javax.servlet.http.HttpServletResponse;

public interface GeneratorCodeService {

    /**
     * 获取表信息
     * @param datasourceId
     * @return
     * @throws Exception
     */
    Object get(String datasourceId) throws Exception;

    /**
     * 执行
     * @param codeStrategy
     * @return
     * @throws Exception
     */
    void execute(HttpServletResponse response, CodeStrategy codeStrategy, String datasourceId) throws Exception;

}
